package durose.system.pojo;

import java.util.ArrayList;
import java.util.List;

public class Sys_menuExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public Sys_menuExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMenu_idIsNull() {
            addCriterion("menu_id is null");
            return (Criteria) this;
        }

        public Criteria andMenu_idIsNotNull() {
            addCriterion("menu_id is not null");
            return (Criteria) this;
        }

        public Criteria andMenu_idEqualTo(Integer value) {
            addCriterion("menu_id =", value, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_idNotEqualTo(Integer value) {
            addCriterion("menu_id <>", value, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_idGreaterThan(Integer value) {
            addCriterion("menu_id >", value, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("menu_id >=", value, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_idLessThan(Integer value) {
            addCriterion("menu_id <", value, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_idLessThanOrEqualTo(Integer value) {
            addCriterion("menu_id <=", value, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_idIn(List<Integer> values) {
            addCriterion("menu_id in", values, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_idNotIn(List<Integer> values) {
            addCriterion("menu_id not in", values, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_idBetween(Integer value1, Integer value2) {
            addCriterion("menu_id between", value1, value2, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_idNotBetween(Integer value1, Integer value2) {
            addCriterion("menu_id not between", value1, value2, "menu_id");
            return (Criteria) this;
        }

        public Criteria andMenu_indexIsNull() {
            addCriterion("menu_index is null");
            return (Criteria) this;
        }

        public Criteria andMenu_indexIsNotNull() {
            addCriterion("menu_index is not null");
            return (Criteria) this;
        }

        public Criteria andMenu_indexEqualTo(Integer value) {
            addCriterion("menu_index =", value, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_indexNotEqualTo(Integer value) {
            addCriterion("menu_index <>", value, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_indexGreaterThan(Integer value) {
            addCriterion("menu_index >", value, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_indexGreaterThanOrEqualTo(Integer value) {
            addCriterion("menu_index >=", value, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_indexLessThan(Integer value) {
            addCriterion("menu_index <", value, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_indexLessThanOrEqualTo(Integer value) {
            addCriterion("menu_index <=", value, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_indexIn(List<Integer> values) {
            addCriterion("menu_index in", values, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_indexNotIn(List<Integer> values) {
            addCriterion("menu_index not in", values, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_indexBetween(Integer value1, Integer value2) {
            addCriterion("menu_index between", value1, value2, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_indexNotBetween(Integer value1, Integer value2) {
            addCriterion("menu_index not between", value1, value2, "menu_index");
            return (Criteria) this;
        }

        public Criteria andMenu_parentIsNull() {
            addCriterion("menu_parent is null");
            return (Criteria) this;
        }

        public Criteria andMenu_parentIsNotNull() {
            addCriterion("menu_parent is not null");
            return (Criteria) this;
        }

        public Criteria andMenu_parentEqualTo(Integer value) {
            addCriterion("menu_parent =", value, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_parentNotEqualTo(Integer value) {
            addCriterion("menu_parent <>", value, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_parentGreaterThan(Integer value) {
            addCriterion("menu_parent >", value, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_parentGreaterThanOrEqualTo(Integer value) {
            addCriterion("menu_parent >=", value, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_parentLessThan(Integer value) {
            addCriterion("menu_parent <", value, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_parentLessThanOrEqualTo(Integer value) {
            addCriterion("menu_parent <=", value, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_parentIn(List<Integer> values) {
            addCriterion("menu_parent in", values, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_parentNotIn(List<Integer> values) {
            addCriterion("menu_parent not in", values, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_parentBetween(Integer value1, Integer value2) {
            addCriterion("menu_parent between", value1, value2, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_parentNotBetween(Integer value1, Integer value2) {
            addCriterion("menu_parent not between", value1, value2, "menu_parent");
            return (Criteria) this;
        }

        public Criteria andMenu_nameIsNull() {
            addCriterion("menu_name is null");
            return (Criteria) this;
        }

        public Criteria andMenu_nameIsNotNull() {
            addCriterion("menu_name is not null");
            return (Criteria) this;
        }

        public Criteria andMenu_nameEqualTo(String value) {
            addCriterion("menu_name =", value, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameNotEqualTo(String value) {
            addCriterion("menu_name <>", value, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameGreaterThan(String value) {
            addCriterion("menu_name >", value, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameGreaterThanOrEqualTo(String value) {
            addCriterion("menu_name >=", value, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameLessThan(String value) {
            addCriterion("menu_name <", value, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameLessThanOrEqualTo(String value) {
            addCriterion("menu_name <=", value, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameLike(String value) {
            addCriterion("menu_name like", value, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameNotLike(String value) {
            addCriterion("menu_name not like", value, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameIn(List<String> values) {
            addCriterion("menu_name in", values, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameNotIn(List<String> values) {
            addCriterion("menu_name not in", values, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameBetween(String value1, String value2) {
            addCriterion("menu_name between", value1, value2, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_nameNotBetween(String value1, String value2) {
            addCriterion("menu_name not between", value1, value2, "menu_name");
            return (Criteria) this;
        }

        public Criteria andMenu_iconIsNull() {
            addCriterion("menu_icon is null");
            return (Criteria) this;
        }

        public Criteria andMenu_iconIsNotNull() {
            addCriterion("menu_icon is not null");
            return (Criteria) this;
        }

        public Criteria andMenu_iconEqualTo(String value) {
            addCriterion("menu_icon =", value, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconNotEqualTo(String value) {
            addCriterion("menu_icon <>", value, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconGreaterThan(String value) {
            addCriterion("menu_icon >", value, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconGreaterThanOrEqualTo(String value) {
            addCriterion("menu_icon >=", value, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconLessThan(String value) {
            addCriterion("menu_icon <", value, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconLessThanOrEqualTo(String value) {
            addCriterion("menu_icon <=", value, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconLike(String value) {
            addCriterion("menu_icon like", value, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconNotLike(String value) {
            addCriterion("menu_icon not like", value, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconIn(List<String> values) {
            addCriterion("menu_icon in", values, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconNotIn(List<String> values) {
            addCriterion("menu_icon not in", values, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconBetween(String value1, String value2) {
            addCriterion("menu_icon between", value1, value2, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_iconNotBetween(String value1, String value2) {
            addCriterion("menu_icon not between", value1, value2, "menu_icon");
            return (Criteria) this;
        }

        public Criteria andMenu_urlIsNull() {
            addCriterion("menu_url is null");
            return (Criteria) this;
        }

        public Criteria andMenu_urlIsNotNull() {
            addCriterion("menu_url is not null");
            return (Criteria) this;
        }

        public Criteria andMenu_urlEqualTo(String value) {
            addCriterion("menu_url =", value, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlNotEqualTo(String value) {
            addCriterion("menu_url <>", value, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlGreaterThan(String value) {
            addCriterion("menu_url >", value, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlGreaterThanOrEqualTo(String value) {
            addCriterion("menu_url >=", value, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlLessThan(String value) {
            addCriterion("menu_url <", value, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlLessThanOrEqualTo(String value) {
            addCriterion("menu_url <=", value, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlLike(String value) {
            addCriterion("menu_url like", value, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlNotLike(String value) {
            addCriterion("menu_url not like", value, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlIn(List<String> values) {
            addCriterion("menu_url in", values, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlNotIn(List<String> values) {
            addCriterion("menu_url not in", values, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlBetween(String value1, String value2) {
            addCriterion("menu_url between", value1, value2, "menu_url");
            return (Criteria) this;
        }

        public Criteria andMenu_urlNotBetween(String value1, String value2) {
            addCriterion("menu_url not between", value1, value2, "menu_url");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}